home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
me_cd22.zip
/
MUTT2.ZIP
/
MIN.MUT
< prev
next >
Wrap
Lisp/Scheme
|
1992-04-27
|
261b
|
13 lines
;; min.mut : find the the minimum of a list of numbers
;; eg (min 1 2 3 4 5) returns 1
;; C Durland Public Domain
(defun min HIDDEN
{
(int n i)
(n (arg (i (- (nargs) 1))))
(while (>= (-= i 1) 0) (if (< (arg i) n) (n (arg i))) )
n
})